// index.js


Page({
  data: {
    showIcon:true,
    tagType:"rec",
    tagBarList:[
      {
        name:"推荐",
        type:"rec",
        Url:"../../resources/img/rec.png"
      },
      {
        name:"路径",
        type:"path",
        Url:"../../resources/img/route.png"
      },
      {
        name:"实战",
        type:"pro",
        Url:"../../resources/img/ex.png"
      },
      {
        name:"活动",
        type:"act",
        Url:"../../resources/img/activity.png"
      }
    ]
  },
  handleInput(e){
    const value = e.detail.value
    this.setData({showIcon:value?false:true})
  },
  onLoad(){
    const projectUrl ='https://www.fastmock.site/mock/d22601a7b7ca7289450964c221e93d19/weixin/api/getData';
 
  },
  tagHandler(e){
    this.setData({tagType:e.currentTarget.dataset.type})
    console.log(e.currentTarget.dataset.type)
  },
  handleGoToDetail(e){
    wx.navigateTo({
      url: `/pages/detail/detail?id=${e.currentTarget.dataset.id}`,
    })
  }
})
